package com.bang.daybreak.user.model.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.bang.daybreak.common.framework.model.convert.Convert;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 用户表
 * </p>
 *
 * @author wangdejian
 * @since 2019-11-25
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("sys_user")
public class SysUser extends Convert {

private static final long serialVersionUID=1L;

    /**
     * 用户主键id
     */
    @TableId(value = "user_id", type = IdType.AUTO)
    private Integer userId;

    /**
     * 用户名
     */
    private String username;

    /**
     * 真实姓名
     */
    private String realName;

    /**
     * 密码
     */
    private String password;

    /**
     * 部门id
     */
    private String deptId;

    /**
     * 手机号码
     */
    private String mobilephone;

    /**
     * 电话号码
     */
    private String telephone;

    /**
     * 身份证号码
     */
    private String idcard;

    /**
     * 性别(0男,1女,2:未知)
     */
    private Boolean sex;

    /**
     * 邮箱
     */
    private String email;

    /**
     * 用户头像
     */
    private String userAvatar;

    /**
     * 地址
     */
    private String address;

    /**
     * 用户状态(1：正常，0：禁用)
     */
    private Boolean enabled;

    /**
     * 描述
     */
    private String description;

    /**
     * 最后登录时间
     */
    private LocalDateTime lastLoginTime;

    /**
     * 创建用户编号
     */
    private String createUser;

    /**
     * 创建时间
     */
    private LocalDateTime createTime;

    /**
     * 更新用户编号
     */
    private String updateUser;

    /**
     * 更新时间
     */
    private LocalDateTime updateTime;


    public static final String USER_ID = "user_id";

    public static final String USERNAME = "username";

    public static final String REAL_NAME = "real_name";

    public static final String PASSWORD = "password";

    public static final String DEPT_ID = "dept_id";

    public static final String MOBILEPHONE = "mobilephone";

    public static final String TELEPHONE = "telephone";

    public static final String IDCARD = "idcard";

    public static final String SEX = "sex";

    public static final String EMAIL = "email";

    public static final String USER_AVATAR = "user_avatar";

    public static final String ADDRESS = "address";

    public static final String ENABLED = "enabled";

    public static final String DESCRIPTION = "description";

    public static final String LAST_LOGIN_TIME = "last_login_time";

    public static final String CREATE_USER = "create_user";

    public static final String CREATE_TIME = "create_time";

    public static final String UPDATE_USER = "update_user";

    public static final String UPDATE_TIME = "update_time";

}
